package com.ms.monitor.config;


import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import com.ms.msclient.MsClientServiceBeanRegistry;

/**
 * MsClient的配置
 * @author yuejing
 * @date 2019年8月8日 下午12:14:39
 */
@Configuration
public class MsClientConfig {

	private final Logger LOGGER = LoggerFactory.getLogger(MsClientConfig.class);

	@Bean
	public MsClientServiceBeanRegistry msClientServiceBeanRegistry() {
		LOGGER.info("注入MsClient的接口");
		MsClientServiceBeanRegistry.setShowLog(false);
		MsClientServiceBeanRegistry registry = new MsClientServiceBeanRegistry();
		registry.setPackages("com.ms.client.*.*.service;");
		return registry;
	}
}